import { RouterProvider } from 'react-router-dom';
import { ConfigProvider, theme } from 'antd';
import { useStore } from './store';
import router from './router';

function App() {
    const { isDark } = useStore();
    return (
        <ConfigProvider
            theme={{
                algorithm: isDark ? theme.darkAlgorithm : theme.defaultAlgorithm,

            }}
        >
            <RouterProvider router={router} />
        </ConfigProvider>
    )



}

export default App;